"""
安装：pip install tqdm
"""
from tqdm import tqdm
import time

loop = tqdm(range(100))
for i in loop:
    time.sleep(1)
    # print(i)
    loop.set_description(f"-->{i}")
loop.clear()  # 清空所有内容
loop.close()  # 关闭loop
